const express = require('express');
const router = express.Router();


/**
 * @swagger
 * /api/hello:
 *   post:
 *     summary: Returns a hello message
 *     responses:
 *       200:
 *         description: Success
 *         content:
 *           application/json:
 *             schema:
 *               type: object
 *               properties:
 *                 message:
 *                   type: string
 */

router.get('/api/hello', (req, res) => {
    res.json({ message: 'Hello!' });
});


/**
 * @swagger
 * /api/hello2:
 *   post:
 *     summary: Returns a hello message
 *     responses:
 *       200:
 *         description: Success
 *         content:
 *           application/json:
 *             schema:
 *               type: object
 *               properties:
 *                 message:
 *                   type: string
 */

router.get('/api/hello2', (req, res) => {
    res.json({ message: 'Hello2!' });
});

module.exports = router